﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Demo.Util
{
    public partial class MouseApiDemo : Form
    {
        public MouseApiDemo()
        {
            InitializeComponent();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            MessageBox.Show("阁下，你点点了Button2");
        }

        private void button1_Click(object sender, EventArgs e)
        {
            Cocon90.Lib.Util.Window.Hook.MouseApi m = new Cocon90.Lib.Util.Window.Hook.MouseApi();
            Cursor.Position = new Point(button2.Left + this.Left + 30, button2.Top + this.Top + 25 + 15);
            m.LeftClick();
        }
    }
}
